import HttpRequest from '@/libs/axios'
import config from '@/config'
const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro

//  var hostd = window.location.host;
//   var Pro
//   if(hostd=='manage.supai.net'||hostd=='192.168.1.47:8080'||hostd=='localhost:8080'){
//     Pro='https://xapi.52piaoduoduo.com';
//   }else {
//     Pro='https://pdd.supai.net';
  
// }
// console.log(hostd)
// console.log(baseUrl);
const axios = new HttpRequest(baseUrl)
export default axios
